package com.bw.my.mvvm.user;

import com.bw.my.mvvm.model.entity.UserEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface Api {

    @POST("userCenter/register")
    Observable<UserEntity> requestRegister(@Body RequestBody body);

    @POST("userCenter/login")
    Observable<UserEntity> requestLogin(@Body RequestBody body);

    @POST("userCenter/forgetPwd")
    Observable<UserEntity> requestForget(@Body RequestBody body);
}
